import { ServiceProto } from 'tsrpc-proto';
import { ReqGMAddAllHero, ResGMAddAllHero } from './gm/PtlGMAddAllHero';
import { ReqGMAddAllItem, ResGMAddAllItem } from './gm/PtlGMAddAllItem';
import { ReqGMAddEnergy, ResGMAddEnergy } from './gm/PtlGMAddEnergy';
import { ReqGMAddGold, ResGMAddGold } from './gm/PtlGMAddGold';
import { ReqGMAddHero, ResGMAddHero } from './gm/PtlGMAddHero';
import { ReqGMAddItem, ResGMAddItem } from './gm/PtlGMAddItem';
import { ReqGMClearBag, ResGMClearBag } from './gm/PtlGMClearBag';
import { ReqGMSetStageScore, ResGMSetStageScore } from './gm/PtlGMSetStageScore';
import { ReqAddEnergy, ResAddEnergy } from './PtlAddEnergy';
import { ReqAddGold, ResAddGold } from './PtlAddGold';
import { ReqAdGetEnergy, ResAdGetEnergy } from './PtlAdGetEnergy';
import { ReqAdGetGold, ResAdGetGold } from './PtlAdGetGold';
import { ReqBuyEnergy, ResBuyEnergy } from './PtlBuyEnergy';
import { ReqEnergyTick, ResEnergyTick } from './PtlEnergyTick';
import { ReqExchangeHero, ResExchangeHero } from './PtlExchangeHero';
import { ReqGetRankList, ResGetRankList } from './PtlGetRankList';
import { ReqGoldPoolReceive, ResGoldPoolReceive } from './PtlGoldPoolReceive';
import { ReqGoldPoolTick, ResGoldPoolTick } from './PtlGoldPoolTick';
import { ReqPlayerLogin, ResPlayerLogin } from './PtlPlayerLogin';
import { ReqPlayerSign, ResPlayerSign } from './PtlPlayerSign';
import { ReqPlayVideoAd, ResPlayVideoAd } from './PtlPlayVideoAd';
import { ReqRewardsRate, ResRewardsRate } from './PtlRewardsRate';
import { ReqSelectHero, ResSelectHero } from './PtlSelectHero';
import { ReqSelectItem, ResSelectItem } from './PtlSelectItem';
import { ReqShare, ResShare } from './PtlShare';
import { ReqShopBuy, ResShopBuy } from './PtlShopBuy';
import { ReqStageEnd, ResStageEnd } from './PtlStageEnd';
import { ReqStageEnter, ResStageEnter } from './PtlStageEnter';
import { ReqTaskList, ResTaskList } from './PtlTaskList';
import { ReqTaskReceive, ResTaskReceive } from './PtlTaskReceive';
import { ReqUseItem, ResUseItem } from './PtlUseItem';

export interface ServiceType {
    api: {
        "gm/GMAddAllHero": {
            req: ReqGMAddAllHero,
            res: ResGMAddAllHero
        },
        "gm/GMAddAllItem": {
            req: ReqGMAddAllItem,
            res: ResGMAddAllItem
        },
        "gm/GMAddEnergy": {
            req: ReqGMAddEnergy,
            res: ResGMAddEnergy
        },
        "gm/GMAddGold": {
            req: ReqGMAddGold,
            res: ResGMAddGold
        },
        "gm/GMAddHero": {
            req: ReqGMAddHero,
            res: ResGMAddHero
        },
        "gm/GMAddItem": {
            req: ReqGMAddItem,
            res: ResGMAddItem
        },
        "gm/GMClearBag": {
            req: ReqGMClearBag,
            res: ResGMClearBag
        },
        "gm/GMSetStageScore": {
            req: ReqGMSetStageScore,
            res: ResGMSetStageScore
        },
        "AddEnergy": {
            req: ReqAddEnergy,
            res: ResAddEnergy
        },
        "AddGold": {
            req: ReqAddGold,
            res: ResAddGold
        },
        "AdGetEnergy": {
            req: ReqAdGetEnergy,
            res: ResAdGetEnergy
        },
        "AdGetGold": {
            req: ReqAdGetGold,
            res: ResAdGetGold
        },
        "BuyEnergy": {
            req: ReqBuyEnergy,
            res: ResBuyEnergy
        },
        "EnergyTick": {
            req: ReqEnergyTick,
            res: ResEnergyTick
        },
        "ExchangeHero": {
            req: ReqExchangeHero,
            res: ResExchangeHero
        },
        "GetRankList": {
            req: ReqGetRankList,
            res: ResGetRankList
        },
        "GoldPoolReceive": {
            req: ReqGoldPoolReceive,
            res: ResGoldPoolReceive
        },
        "GoldPoolTick": {
            req: ReqGoldPoolTick,
            res: ResGoldPoolTick
        },
        "PlayerLogin": {
            req: ReqPlayerLogin,
            res: ResPlayerLogin
        },
        "PlayerSign": {
            req: ReqPlayerSign,
            res: ResPlayerSign
        },
        "PlayVideoAd": {
            req: ReqPlayVideoAd,
            res: ResPlayVideoAd
        },
        "RewardsRate": {
            req: ReqRewardsRate,
            res: ResRewardsRate
        },
        "SelectHero": {
            req: ReqSelectHero,
            res: ResSelectHero
        },
        "SelectItem": {
            req: ReqSelectItem,
            res: ResSelectItem
        },
        "Share": {
            req: ReqShare,
            res: ResShare
        },
        "ShopBuy": {
            req: ReqShopBuy,
            res: ResShopBuy
        },
        "StageEnd": {
            req: ReqStageEnd,
            res: ResStageEnd
        },
        "StageEnter": {
            req: ReqStageEnter,
            res: ResStageEnter
        },
        "TaskList": {
            req: ReqTaskList,
            res: ResTaskList
        },
        "TaskReceive": {
            req: ReqTaskReceive,
            res: ResTaskReceive
        },
        "UseItem": {
            req: ReqUseItem,
            res: ResUseItem
        }
    },
    msg: {

    }
}

export const serviceProto: ServiceProto<ServiceType> = {
    "version": 46,
    "services": [
        {
            "id": 23,
            "name": "gm/GMAddAllHero",
            "type": "api"
        },
        {
            "id": 24,
            "name": "gm/GMAddAllItem",
            "type": "api"
        },
        {
            "id": 25,
            "name": "gm/GMAddEnergy",
            "type": "api"
        },
        {
            "id": 26,
            "name": "gm/GMAddGold",
            "type": "api"
        },
        {
            "id": 27,
            "name": "gm/GMAddHero",
            "type": "api"
        },
        {
            "id": 28,
            "name": "gm/GMAddItem",
            "type": "api"
        },
        {
            "id": 29,
            "name": "gm/GMClearBag",
            "type": "api"
        },
        {
            "id": 31,
            "name": "gm/GMSetStageScore",
            "type": "api"
        },
        {
            "id": 3,
            "name": "AddEnergy",
            "type": "api"
        },
        {
            "id": 4,
            "name": "AddGold",
            "type": "api"
        },
        {
            "id": 5,
            "name": "AdGetEnergy",
            "type": "api"
        },
        {
            "id": 6,
            "name": "AdGetGold",
            "type": "api"
        },
        {
            "id": 7,
            "name": "BuyEnergy",
            "type": "api"
        },
        {
            "id": 9,
            "name": "EnergyTick",
            "type": "api"
        },
        {
            "id": 14,
            "name": "ExchangeHero",
            "type": "api"
        },
        {
            "id": 11,
            "name": "GetRankList",
            "type": "api"
        },
        {
            "id": 12,
            "name": "GoldPoolReceive",
            "type": "api"
        },
        {
            "id": 13,
            "name": "GoldPoolTick",
            "type": "api"
        },
        {
            "id": 2,
            "name": "PlayerLogin",
            "type": "api"
        },
        {
            "id": 22,
            "name": "PlayerSign",
            "type": "api"
        },
        {
            "id": 32,
            "name": "PlayVideoAd",
            "type": "api"
        },
        {
            "id": 36,
            "name": "RewardsRate",
            "type": "api"
        },
        {
            "id": 17,
            "name": "SelectHero",
            "type": "api"
        },
        {
            "id": 19,
            "name": "SelectItem",
            "type": "api"
        },
        {
            "id": 33,
            "name": "Share",
            "type": "api"
        },
        {
            "id": 20,
            "name": "ShopBuy",
            "type": "api"
        },
        {
            "id": 15,
            "name": "StageEnd",
            "type": "api"
        },
        {
            "id": 16,
            "name": "StageEnter",
            "type": "api"
        },
        {
            "id": 34,
            "name": "TaskList",
            "type": "api"
        },
        {
            "id": 35,
            "name": "TaskReceive",
            "type": "api"
        },
        {
            "id": 21,
            "name": "UseItem",
            "type": "api"
        }
    ],
    "types": {
        "gm/PtlGMAddAllHero/ReqGMAddAllHero": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ]
        },
        "base/BaseRequest": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "__cookie",
                    "type": {
                        "type": "Reference",
                        "target": "base/Cookie"
                    },
                    "optional": true
                }
            ]
        },
        "base/Cookie": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "sessionId",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                }
            ],
            "indexSignature": {
                "keyType": "String",
                "type": {
                    "type": "Any"
                }
            }
        },
        "gm/PtlGMAddAllHero/ResGMAddAllHero": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 1,
                    "name": "heros",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "../db/HeroData/HeroData"
                        }
                    }
                }
            ]
        },
        "base/BaseResponse": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "__cookie",
                    "type": {
                        "type": "Reference",
                        "target": "base/Cookie"
                    },
                    "optional": true
                }
            ]
        },
        "../db/HeroData/HeroData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "id",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "gm/PtlGMAddAllItem/ReqGMAddAllItem": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "count",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "gm/PtlGMAddAllItem/ResGMAddAllItem": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 1,
                    "name": "rewards",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "../db/RewardData/RewardData"
                        }
                    }
                }
            ]
        },
        "../db/RewardData/RewardData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 2,
                    "name": "item_id",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "count",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "gm/PtlGMAddEnergy/ReqGMAddEnergy": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "num",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "gm/PtlGMAddEnergy/ResGMAddEnergy": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "energy",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "gm/PtlGMAddGold/ReqGMAddGold": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "num",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "gm/PtlGMAddGold/ResGMAddGold": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "gold",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "gm/PtlGMAddHero/ReqGMAddHero": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "heroId",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "gm/PtlGMAddHero/ResGMAddHero": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "hero",
                    "type": {
                        "type": "Reference",
                        "target": "../db/HeroData/HeroData"
                    }
                }
            ]
        },
        "gm/PtlGMAddItem/ReqGMAddItem": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "item",
                    "type": {
                        "type": "Reference",
                        "target": "../db/ItemData/ItemData"
                    }
                }
            ]
        },
        "../db/ItemData/ItemData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "id",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 2,
                    "name": "count",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "gm/PtlGMAddItem/ResGMAddItem": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 1,
                    "name": "reward",
                    "type": {
                        "type": "Reference",
                        "target": "../db/RewardData/RewardData"
                    }
                }
            ]
        },
        "gm/PtlGMClearBag/ReqGMClearBag": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ]
        },
        "gm/PtlGMClearBag/ResGMClearBag": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "items",
                    "type": {
                        "type": "Interface",
                        "indexSignature": {
                            "keyType": "String",
                            "type": {
                                "type": "Reference",
                                "target": "../db/ItemData/ItemData"
                            }
                        }
                    }
                },
                {
                    "id": 1,
                    "name": "itemSlot",
                    "type": {
                        "type": "Interface",
                        "indexSignature": {
                            "keyType": "String",
                            "type": {
                                "type": "Union",
                                "members": [
                                    {
                                        "id": 0,
                                        "type": {
                                            "type": "String"
                                        }
                                    },
                                    {
                                        "id": 1,
                                        "type": {
                                            "type": "Literal"
                                        }
                                    }
                                ]
                            }
                        }
                    }
                }
            ]
        },
        "gm/PtlGMSetStageScore/ReqGMSetStageScore": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "stageId",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "score",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "gm/PtlGMSetStageScore/ResGMSetStageScore": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "score",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlAddEnergy/ReqAddEnergy": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "num",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlAddEnergy/ResAddEnergy": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 1,
                    "name": "energy",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlAddGold/ReqAddGold": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "num",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlAddGold/ResAddGold": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "gold",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlAdGetEnergy/ReqAdGetEnergy": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ]
        },
        "PtlAdGetEnergy/ResAdGetEnergy": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "energy",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlAdGetGold/ReqAdGetGold": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ]
        },
        "PtlAdGetGold/ResAdGetGold": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "gold",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlBuyEnergy/ReqBuyEnergy": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "num",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlBuyEnergy/ResBuyEnergy": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "gold",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "energy",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlEnergyTick/ReqEnergyTick": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ]
        },
        "PtlEnergyTick/ResEnergyTick": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "energy",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "nextTime",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlExchangeHero/ReqExchangeHero": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "heroId",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlExchangeHero/ResExchangeHero": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 2,
                    "name": "hero",
                    "type": {
                        "type": "Reference",
                        "target": "../db/HeroData/HeroData"
                    }
                },
                {
                    "id": 3,
                    "name": "item",
                    "type": {
                        "type": "Reference",
                        "target": "../db/ItemData/ItemData"
                    }
                }
            ]
        },
        "PtlGetRankList/ReqGetRankList": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 1,
                    "name": "channel",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlGetRankList/ResGetRankList": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "list",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "target": {
                                "type": "Reference",
                                "target": "../db/Player/Player"
                            },
                            "keys": [
                                "openId",
                                "nickName",
                                "avatarUrl",
                                "score"
                            ],
                            "type": "Pick"
                        }
                    }
                }
            ]
        },
        "../db/Player/Player": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "_id",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "openId",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 2,
                    "name": "nickName",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 3,
                    "name": "avatarUrl",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                },
                {
                    "id": 4,
                    "name": "score",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 5,
                    "name": "platform",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 13,
                    "name": "channel",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 6,
                    "name": "energy",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 7,
                    "name": "gold",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 8,
                    "name": "registerTime",
                    "type": {
                        "type": "Date"
                    }
                },
                {
                    "id": 9,
                    "name": "lastLoginTime",
                    "type": {
                        "type": "Date"
                    }
                },
                {
                    "id": 10,
                    "name": "lastGoldReceiveTime",
                    "type": {
                        "type": "Date"
                    }
                },
                {
                    "id": 11,
                    "name": "goldPool",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 12,
                    "name": "lastEnergyReceiveTime",
                    "type": {
                        "type": "Date"
                    }
                },
                {
                    "id": 34,
                    "name": "hasFirstOpenBox",
                    "type": {
                        "type": "Boolean"
                    }
                },
                {
                    "id": 14,
                    "name": "stage",
                    "type": {
                        "type": "Interface",
                        "indexSignature": {
                            "keyType": "String",
                            "type": {
                                "type": "Reference",
                                "target": "../db/StageData/StageData"
                            }
                        }
                    }
                },
                {
                    "id": 15,
                    "name": "heros",
                    "type": {
                        "type": "Interface",
                        "indexSignature": {
                            "keyType": "String",
                            "type": {
                                "type": "Reference",
                                "target": "../db/HeroData/HeroData"
                            }
                        }
                    }
                },
                {
                    "id": 16,
                    "name": "items",
                    "type": {
                        "type": "Interface",
                        "indexSignature": {
                            "keyType": "String",
                            "type": {
                                "type": "Reference",
                                "target": "../db/ItemData/ItemData"
                            }
                        }
                    }
                },
                {
                    "id": 22,
                    "name": "itemSlot",
                    "type": {
                        "type": "Interface",
                        "indexSignature": {
                            "keyType": "String",
                            "type": {
                                "type": "Union",
                                "members": [
                                    {
                                        "id": 0,
                                        "type": {
                                            "type": "String"
                                        }
                                    },
                                    {
                                        "id": 1,
                                        "type": {
                                            "type": "Literal"
                                        }
                                    }
                                ]
                            }
                        }
                    }
                },
                {
                    "id": 18,
                    "name": "shopItemAd",
                    "type": {
                        "type": "Interface",
                        "indexSignature": {
                            "keyType": "String",
                            "type": {
                                "type": "Number"
                            }
                        }
                    }
                },
                {
                    "id": 17,
                    "name": "curSelectHero",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 19,
                    "name": "lastSignTime",
                    "type": {
                        "type": "Date"
                    }
                },
                {
                    "id": 21,
                    "name": "signData",
                    "type": {
                        "type": "Reference",
                        "target": "../db/SignData/SignData"
                    }
                },
                {
                    "id": 32,
                    "name": "taskReceived",
                    "type": {
                        "type": "Interface",
                        "indexSignature": {
                            "keyType": "String",
                            "type": {
                                "type": "Boolean"
                            }
                        }
                    }
                },
                {
                    "id": 23,
                    "name": "dayLogin",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 24,
                    "name": "dayShareCount",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 25,
                    "name": "dayStageEndlessScore",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 26,
                    "name": "dayVideoCount",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 27,
                    "name": "dayBuyItemCount",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 28,
                    "name": "dayUseItemCount",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 29,
                    "name": "totalVideoCount",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 31,
                    "name": "totalUseItemCount",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "../db/StageData/StageData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 2,
                    "name": "id",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 0,
                    "name": "score",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "rewardList",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Number"
                        }
                    }
                }
            ]
        },
        "../db/SignData/SignData": {
            "type": "Interface",
            "properties": [
                {
                    "id": 0,
                    "name": "day",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "sign",
                    "type": {
                        "type": "Boolean"
                    }
                }
            ]
        },
        "PtlGoldPoolReceive/ReqGoldPoolReceive": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "rate",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlGoldPoolReceive/ResGoldPoolReceive": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "gold",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "goldPool",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 2,
                    "name": "nextTime",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlGoldPoolTick/ReqGoldPoolTick": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ]
        },
        "PtlGoldPoolTick/ResGoldPoolTick": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "goldPool",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "nextTime",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlPlayerLogin/ReqPlayerLogin": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 5,
                    "name": "openId",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                },
                {
                    "id": 3,
                    "name": "code",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                },
                {
                    "id": 6,
                    "name": "loginData",
                    "type": {
                        "target": {
                            "type": "Reference",
                            "target": "../db/Player/Player"
                        },
                        "keys": [
                            "platform",
                            "nickName",
                            "avatarUrl",
                            "channel"
                        ],
                        "type": "Pick"
                    }
                }
            ]
        },
        "PtlPlayerLogin/ResPlayerLogin": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 5,
                    "name": "loginData",
                    "type": {
                        "target": {
                            "type": "Reference",
                            "target": "../db/Player/Player"
                        },
                        "keys": [
                            "_id",
                            "registerTime",
                            "lastLoginTime",
                            "lastGoldReceiveTime",
                            "lastEnergyReceiveTime",
                            "goldPool",
                            "lastSignTime",
                            "hasFirstOpenBox"
                        ],
                        "type": "Omit"
                    }
                },
                {
                    "id": 6,
                    "name": "nextEnergyTime",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 7,
                    "name": "poolData",
                    "type": {
                        "type": "Interface",
                        "properties": [
                            {
                                "id": 0,
                                "name": "goldPool",
                                "type": {
                                    "type": "Number"
                                }
                            },
                            {
                                "id": 1,
                                "name": "nextTime",
                                "type": {
                                    "type": "Number"
                                }
                            }
                        ]
                    }
                }
            ]
        },
        "PtlPlayerSign/ReqPlayerSign": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "day",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlPlayerSign/ResPlayerSign": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "rewards",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "../db/RewardData/RewardData"
                        }
                    }
                },
                {
                    "id": 2,
                    "name": "signData",
                    "type": {
                        "type": "Reference",
                        "target": "../db/SignData/SignData"
                    }
                }
            ]
        },
        "PtlPlayVideoAd/ReqPlayVideoAd": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ]
        },
        "PtlPlayVideoAd/ResPlayVideoAd": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "totalVideoCount",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "dayVideoCount",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlRewardsRate/ReqRewardsRate": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "rewards",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "../db/RewardData/RewardData"
                        }
                    }
                },
                {
                    "id": 1,
                    "name": "rate",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlRewardsRate/ResRewardsRate": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "rewards",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "../db/RewardData/RewardData"
                        }
                    }
                }
            ]
        },
        "PtlSelectHero/ReqSelectHero": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "heroId",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlSelectHero/ResSelectHero": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ]
        },
        "PtlSelectItem/ReqSelectItem": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 2,
                    "name": "slotId",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "select",
                    "type": {
                        "type": "Boolean"
                    }
                },
                {
                    "id": 0,
                    "name": "itemId",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                }
            ]
        },
        "PtlSelectItem/ResSelectItem": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 2,
                    "name": "slotId",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 3,
                    "name": "select",
                    "type": {
                        "type": "Boolean"
                    }
                },
                {
                    "id": 4,
                    "name": "itemId",
                    "type": {
                        "type": "String"
                    },
                    "optional": true
                }
            ]
        },
        "PtlShare/ReqShare": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ]
        },
        "PtlShare/ResShare": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "dayShareCount",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlShopBuy/ReqShopBuy": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "shopId",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "count",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlShopBuy/ResShopBuy": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "rewards",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "../db/RewardData/RewardData"
                        }
                    },
                    "optional": true
                },
                {
                    "id": 1,
                    "name": "shopItemAdCount",
                    "type": {
                        "type": "Number"
                    },
                    "optional": true
                },
                {
                    "id": 2,
                    "name": "gold",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 3,
                    "name": "dayBuyItemCount",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlStageEnd/ReqStageEnd": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "stageId",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 1,
                    "name": "score",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlStageEnd/ResStageEnd": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 3,
                    "name": "win",
                    "type": {
                        "type": "Boolean"
                    }
                },
                {
                    "id": 0,
                    "name": "score",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 2,
                    "name": "dayStageEndlessScore",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 1,
                    "name": "rewards",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "../db/RewardData/RewardData"
                        }
                    },
                    "optional": true
                }
            ]
        },
        "PtlStageEnter/ReqStageEnter": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "stageId",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlStageEnter/ResStageEnter": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "energy",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlTaskList/ReqTaskList": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ]
        },
        "PtlTaskList/ResTaskList": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "taskData",
                    "type": {
                        "target": {
                            "type": "Reference",
                            "target": "../db/Player/Player"
                        },
                        "keys": [
                            "taskReceived",
                            "dayLogin",
                            "dayShareCount",
                            "dayStageEndlessScore",
                            "dayVideoCount",
                            "dayBuyItemCount",
                            "dayUseItemCount",
                            "totalVideoCount",
                            "totalUseItemCount"
                        ],
                        "type": "Pick"
                    }
                }
            ]
        },
        "PtlTaskReceive/ReqTaskReceive": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "taskId",
                    "type": {
                        "type": "String"
                    }
                }
            ]
        },
        "PtlTaskReceive/ResTaskReceive": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 1,
                    "name": "taskReceived",
                    "type": {
                        "type": "Interface",
                        "indexSignature": {
                            "keyType": "String",
                            "type": {
                                "type": "Boolean"
                            }
                        }
                    }
                },
                {
                    "id": 0,
                    "name": "rewards",
                    "type": {
                        "type": "Array",
                        "elementType": {
                            "type": "Reference",
                            "target": "../db/RewardData/RewardData"
                        }
                    }
                }
            ]
        },
        "PtlUseItem/ReqUseItem": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseRequest"
                    }
                }
            ],
            "properties": [
                {
                    "id": 1,
                    "name": "slotId",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 0,
                    "name": "itemId",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 2,
                    "name": "num",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        },
        "PtlUseItem/ResUseItem": {
            "type": "Interface",
            "extends": [
                {
                    "id": 0,
                    "type": {
                        "type": "Reference",
                        "target": "base/BaseResponse"
                    }
                }
            ],
            "properties": [
                {
                    "id": 0,
                    "name": "item",
                    "type": {
                        "type": "Reference",
                        "target": "../db/ItemData/ItemData"
                    }
                },
                {
                    "id": 1,
                    "name": "slotId",
                    "type": {
                        "type": "String"
                    }
                },
                {
                    "id": 2,
                    "name": "select",
                    "type": {
                        "type": "Boolean"
                    }
                },
                {
                    "id": 3,
                    "name": "dayUseItemCount",
                    "type": {
                        "type": "Number"
                    }
                },
                {
                    "id": 4,
                    "name": "totalItemUseCount",
                    "type": {
                        "type": "Number"
                    }
                }
            ]
        }
    }
};